home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
perl
/
prlbkxmp.lha
/
ch2
/
fun2text
< prev
next >
Wrap
Text File
|
1991-01-07
|
413b
|
20 lines
#!/usr/bin/perl
# Initialize @fun2text, a normal array.
# (Use $fun2text[$function] to find the text.)
@fun2text = (
"Update",
"Acknowledgement",
"Lightning",
"Sabeans",
"Chaldeans",
"Page Servant",
);
# Initialize %text2fun, an associative array, by inversion.
# (Use $text2fun{$text} to find the function code.)
$index = 0;
foreach $text (@fun2text) { $text2fun{$text} = $index++; }